import React, { FC } from 'react';

interface LinkProps {
    title: string;
    className?: string;

    href?: string; // use this will override inner link build logic
    target?: '_self' | '_top' | '_parent' | '_blank' | 'view_window' | 'view_frame';
}

const Link: FC<LinkProps> = (props) => {
    return (
        <a title={props.title} target={props.target ?? "_self"} href={props.href}>
            <>{props.children}</>
        </a>
    );
};

Link.displayName = 'Link';

export { Link, LinkProps };
